package org.bite.service;

import org.bite.mapper.MessageInfoMapper;
import org.bite.model.MessageInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MessageInfoService {
    @Autowired
    private MessageInfoMapper messageInfoMapper;
    public void insertMessage(MessageInfo messageInfo) {
        messageInfoMapper.insertMessage(messageInfo);
    }
    public List<MessageInfo> queryMessages() {
        return messageInfoMapper.queryMessage();
    }
}
